<div class="container">
	<h1><?=$promocao->nome;?></h1>
	<div class="col-sm-4 hidden-xs">
		<img src="<?=URL;?>public/uploads/<?=$promocao->foto;?>" alt="" style="width:100%; height: auto" />
	</div>
	<div class="col-sm-8 col-xs-12">
		
		
		<h4>Preço antigo: R$ <?=number_format($promocao->preco, 2, ',', '.');?></h4>
		<h2><?=$promocao->desconto;?>% OFF - R$ <?=number_format(($promocao->preco-$promocao->preco*($promocao->desconto/100)), 2, ',', '.');?></h2>
		
		<h3>Loja<?=$promocao->loja;?></h3>

		<h4>Detalhes de <?=$promocao->descricao;?></h4>
		<h5>Restam <?=$promocao->diasRestantes;?> dias de promoção</h5>

		<?php

			if(@$_SESSION['usuario']['tipous'] == 2){
			?>
				<a href="<?php echo URL; ?>administrador/promocao/cancel/<?php echo $promocao->id; ?>" class="btn btn-info btn-xs">Cancelar promoção</a>
				<a href="<?php echo URL; ?>administrador/promocao/drop/<?php echo $promocao->id; ?>" class="btn btn-danger btn-xs">Deletar promoção</a>
			<?php
			}

		?>
	</div>
	
</div>